cmake_minimum_required(VERSION 3.16.3)
project(uring_test)

# 加入一个配置头文件，用于处理 CMake 对源码的设置
configure_file (
  "${PROJECT_SOURCE_DIR}/config/config.h.in"
  "${PROJECT_SOURCE_DIR}/include/config.h"
)

option (IS_PRINT_MESSAGE
       "Use provided math implementation" ON)

if (IS_PRINT_MESSAGE)
	message("IS_PRINT_MESSAGE is true")
endif(IS_PRINT_MESSAGE)

set(BuildType Debug)
set(CMAKE_CXX_COMPILER g++)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O3")

add_subdirectory(src)
